package design.Command;

/**
 * Created by looper on 2017/8/21.
 */
public class ConcreteCommand implements Command {
  private Receiver receiver;

  public ConcreteCommand(Receiver receiver){
    this.receiver = receiver;
  }
  @Override
  public void execute() {
    //调用执行者的执行方法
    receiver.operator();
  }

}
